<?php
namespace app\controller;

use app\BaseController;
use think\facade\Cookie;
use think\facade\Request;
use think\facade\View;
class Index extends BaseController
{
    public function index()
    {
        return View::fetch('./dist/index.html');
    }

    public function hello(Cookie $cookie,$name = 'ThinkPHP6')
    {
//        $cookie =new Cookie();
        $cookie::set('bac','111');
        return 'hello9999,' . $name;
    }
    public function hello2($name = 'ThinkPHP6')
    {
        return 'hell999o,' . $name;
    }

}
